import { BoxProps } from "../../dialogs/component/types"

export interface OptionItem {
  key: string
  label: string
  type: string | boolean | number | 'select'
  value?: string | boolean | number
  options?: { label: string; value: string }[]
}
export type OnChange = (key: string, newValue: boolean | number | string) => void;
export interface OptionListProps extends BoxProps {
  data: OptionItem[]
  showHeader?: boolean,
  onClose?: () => void,
  title: string,
  onChange?: OnChange; // 新增回调
}
